const STATUS=['success','warning','danger'];

/**
 *  时间
 * @param input
 */
import moment from 'moment'
moment.locale('zh-CN')
export function getStatus (input) {
  const complete = moment(input).add(2, 'days')
  if (complete.diff(moment(), 'hours') >= 24) {
    return 'success'
  } else if (complete.diff(moment(), 'hours') >= 12) {
    return 'warning'
  } else {
    return 'danger'
  }
}
